﻿<Window x:Class="xKnight.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="xKnight Scanner" Height="433.665" Width="744.964" WindowStartupLocation="CenterScreen" WindowState="Maximized" Icon="knights_head.ico" >
    <Grid>
        <TabControl Margin="10,7,10,10">
            <TabItem Header="Crawl" FontFamily="B Nazanin" FontSize="15">
                <Grid Background="#FFE5E5E5" FlowDirection="LeftToRight" Margin="0,6,0,-6">
                    <ListView Name="lsvCrawlStatus" Margin="6,136,7,5" SelectionMode="Single">
                        <ListView.View>
                            <GridView AllowsColumnReorder="False">
                                <GridViewColumn DisplayMemberBinding="{Binding Path=Page.Url}" Header="Page Url" Width="150" />
                                <GridViewColumn DisplayMemberBinding="{Binding Path=CrawlStatus }" Header="Crawl Status" Width="150"/>
                                <GridViewColumn DisplayMemberBinding="{Binding Path=Description}" Header="Description" Width="300"/>
                                <GridViewColumn DisplayMemberBinding="{Binding Path=DateTime}" Header="Date - Time" Width="100"/>
                            </GridView>
                        </ListView.View>
                    </ListView>
                    <Label Content="Total Links:" FontFamily="B Nazanin" FontSize="14" Margin="344,6,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="78"/>
                    <Label x:Name="lblTotalLinks"  Content="" FontFamily="Times New Roman" FontSize="14" Margin="452,6,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="80" RenderTransformOrigin="-0.472,-0.387"/>
                    <Label Content="Unique Links:" FontFamily="B Nazanin" FontSize="14" Margin="344,28,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="93"/>
                    <Label x:Name="lblTotalUniqueLinks" Content="" FontFamily="Times New Roman" FontSize="14" Margin="452,27,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="81" RenderTransformOrigin="-0.472,-0.387"/>
                    <Label Content="Total Forms :" FontFamily="B Nazanin" FontSize="14" Margin="345,75,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="90"/>
                    <Label x:Name="lblTotalForms" Content="" FontFamily="Times New Roman" FontSize="14" Margin="452,75,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.472,-0.387" HorizontalAlignment="Left" Width="79"/>
                    <Label Content="Unique Forms:" FontFamily="B Nazanin" FontSize="14" Margin="344,100,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="98"/>
                    <Label x:Name="lblTotalUniqueForms" Content="" FontFamily="Times New Roman" FontSize="14" Margin="452,100,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="92" RenderTransformOrigin="-0.472,-0.387"/>
                    <Label Content="CrawledPages :" FontFamily="B Nazanin" FontSize="14" Margin="344,51,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="103"/>
                    <Label x:Name="lblTotalDownloadedLinks" Content="" FontFamily="Times New Roman" FontSize="14" Margin="452,51,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="93" RenderTransformOrigin="-0.472,-0.387"/>
                    <Label Content="Url :" FontFamily="B Nazanin" FontSize="14" Margin="9,3,669,0" VerticalAlignment="Top"/>
                    <TextBox x:Name="txtAddress" Height="23" Margin="112,6,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" HorizontalAlignment="Left" Width="224">
                        <TextBox.BindingGroup>
                            <BindingGroup/>
                        </TextBox.BindingGroup>
                    </TextBox>
                    <TextBox x:Name="txtCrawlThreads" Height="23" Margin="112,35,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" RenderTransformOrigin="0.548,-0.348" HorizontalAlignment="Left" Width="31"/>
                    <Label Content="Thread Count :" FontFamily="B Nazanin" FontSize="14" Margin="9,33,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="98"/>
                    <Button x:Name="btnStart" Content="Start" FontFamily="B Nazanin" FontSize="14" Margin="6,100,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.213,-0.5" Click="btnStart_Click" Height="27" HorizontalAlignment="Left" Width="116"/>
                    <TextBox x:Name="txtMaxDepth" Height="23" Margin="112,65,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Left" Width="64"/>
                    <CheckBox x:Name="chbMaxDepth" FontFamily="B Nazanin" FontSize="14" Content="Max Depth" Margin="9,68,0,0" VerticalAlignment="Top" Checked="chbMaxDepth_Checked" RenderTransformOrigin="-4.967,1.7" HorizontalAlignment="Left" Width="92"/>
                    <Image Height="121" Margin="0,10,27,0" VerticalAlignment="Top" Source="knights_head.png" HorizontalAlignment="Right" Width="122"/>
                    <Button x:Name="btnStop" Content="Stop" IsEnabled="False" FontFamily="B Nazanin" FontSize="14" Margin="127,100,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.213,-0.5"  Height="27" HorizontalAlignment="Left" Width="116" Click="btnStop_Click"/>
                </Grid>
            </TabItem>
            <TabItem Header="Attack"  FontFamily="B Nazanin" FontSize="15" Height="29" VerticalAlignment="Bottom">
                <Grid Background="#FFE5E5E5" Margin="0,-1,0,1">
                    <ListView x:Name="lsvAttack" Margin="5,73,7,5" SelectionMode="Single" Grid.ColumnSpan="2" Grid.Column="1">
                        <ListView.View>
                            <GridView AllowsColumnReorder="False">
                                <GridViewColumn DisplayMemberBinding="{Binding Path=Url}" Header="Page Url" Width="150"/>
                                <GridViewColumn DisplayMemberBinding="{Binding Path=FormAction}" Header="Form Action" Width="150"/>
                                <GridViewColumn DisplayMemberBinding="{Binding Path=FormMethod}" Header="Form Method" Width="100"/>
                                <GridViewColumn DisplayMemberBinding="{Binding Path=PageResponseCode}" Header="Server Response Code" Width="160"/>
                                <GridViewColumn DisplayMemberBinding="{Binding Path=DateTime}" Header="Date Time" Width="100"/>
                            </GridView>
                        </ListView.View>
                    </ListView>
                    <Label Content="Crawl Id:" FontFamily="B Nazanin" FontSize="14" Margin="1,7,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="87" Grid.ColumnSpan="2" Grid.Column="1" Height="31"/>
                    <TextBox x:Name="txtCrawlId" Height="23" Margin="93,10,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" HorizontalAlignment="Left" Width="62" RenderTransformOrigin="1.21,0.478" FontFamily="Times New Roman">
                        <TextBox.BindingGroup>
                            <BindingGroup/>
                        </TextBox.BindingGroup>
                    </TextBox>
                    <Button x:Name="btnStartAttack" Content="Start" FontFamily="B Nazanin" FontSize="14" HorizontalAlignment="Left" Margin="332,38,0,0" VerticalAlignment="Top" Width="116" RenderTransformOrigin="-0.213,-0.5" Height="29" Click="btnStartAttack_Click"/>
                    <Label Content="Attack Type :" FontFamily="B Nazanin" FontSize="14" Margin="2,38,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="83" Grid.ColumnSpan="2" Grid.Column="1" Height="31"/>
                    <ComboBox Name="cmbAttackType" HorizontalAlignment="Left" Margin="93,38,0,0" VerticalAlignment="Top" Width="225" Height="28"/>
                    <TextBox x:Name="txtAttackThreads" Height="23" Margin="287,10,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" RenderTransformOrigin="0.548,-0.348" HorizontalAlignment="Left" Width="31" FontFamily="Times New Roman"/>
                    <Label Content="Thread Count :" FontFamily="B Nazanin" FontSize="14" Margin="176,7,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="106" Height="31"/>
                </Grid>
            </TabItem>
            <TabItem Header="Analysis"  FontFamily="B Nazanin" FontSize="15">
                <Grid Background="#FFE5E5E5">
                    <ListView x:Name="lsvAnalysis" Margin="6,45,7,3" SelectionMode="Single">
                        <ListView.View>
                            <GridView AllowsColumnReorder="False">
                                <GridViewColumn DisplayMemberBinding="{Binding Path=Url}" Header="Page Url" Width="150"/>
                                <GridViewColumn DisplayMemberBinding="{Binding Path=FormAction}" Header="Form Action" Width="150"/>
                                <GridViewColumn DisplayMemberBinding="{Binding Path=FormMethod}" Header="Form Method" Width="100"/>
                                <GridViewColumn DisplayMemberBinding="{Binding Path=Succeed}" Header="Is Succeed" Width="80"/>
                                <GridViewColumn DisplayMemberBinding="{Binding Path=AttackVector}" Header="Attack Vector" Width="100"/>
                                <GridViewColumn DisplayMemberBinding="{Binding Path=DateTime}" Header="Date - Time" Width="100"/>
                            </GridView>
                        </ListView.View>
                    </ListView>
                    <Label Content="Attack Id :" FontFamily="B Nazanin" FontSize="14" Margin="8,7,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="71"/>
                    <TextBox x:Name="txtAttackId" Height="23" Margin="81,12,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" HorizontalAlignment="Left" Width="62" RenderTransformOrigin="0.21,0.522" FontFamily="Times New Roman">
                        <TextBox.BindingGroup>
                            <BindingGroup/>
                        </TextBox.BindingGroup>
                    </TextBox>
                    <Button x:Name="btnStartAnalyze" Content="Start" FontFamily="B Nazanin" FontSize="14" Margin="148,9,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.213,-0.5" Height="29" HorizontalAlignment="Left" Width="116" Click="btnStartAnalyze_Click"/>
                </Grid>
            </TabItem>
            <TabItem Header="Login Setting" FontFamily="B Nazanin" FontSize="15" Margin="2,0,-6,-2">
                <Grid Background="#FFE5E5E5" FlowDirection="LeftToRight" Margin="0,6,0,-6">
                    <Label x:Name="lblTotalLinks1"  Content="" FlowDirection="RightToLeft" FontFamily="B Nazanin" FontSize="14" Margin="452,6,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="80" RenderTransformOrigin="-0.472,-0.387"/>
                    <Label x:Name="lblTotalUniqueLinks1" Content="" FlowDirection="RightToLeft" FontFamily="B Nazanin" FontSize="14" Margin="452,27,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="81" RenderTransformOrigin="-0.472,-0.387"/>
                    <Label x:Name="lblTotalForms1" Content="" FlowDirection="RightToLeft" FontFamily="B Nazanin" FontSize="14" Margin="452,75,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.472,-0.387" HorizontalAlignment="Left" Width="79"/>
                    <Label x:Name="lblTotalUniqueForms1" Content="" FlowDirection="RightToLeft" FontFamily="B Nazanin" FontSize="14" Margin="452,100,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="92" RenderTransformOrigin="-0.472,-0.387"/>
                    <Label x:Name="lblTotalDownloadedLinks1" Content="" FlowDirection="RightToLeft" FontFamily="B Nazanin" FontSize="14" Margin="452,51,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="93" RenderTransformOrigin="-0.472,-0.387"/>
                    <Label Content="Login Page :" FontFamily="B Nazanin" FontSize="14" Margin="9,42,614,0" VerticalAlignment="Top"/>
                    <TextBox x:Name="txtLoginPage" Height="23" Margin="165,45,10,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" FontFamily="Times New Roman"/>
                    <TextBox x:Name="txtLoginFormAction" Height="23" Margin="165,73,10,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" FontFamily="Times New Roman"/>
                    <Label Content="Login Form Action :" FontFamily="B Nazanin" FontSize="14" Margin="9,73,570,0" VerticalAlignment="Top"/>
                    <TextBox x:Name="txtPasswordField" Height="23" Margin="165,101,10,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" FontFamily="Times New Roman"/>
                    <TextBox x:Name="txtUsernameField" Height="23" Margin="165,129,10,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" FontFamily="Times New Roman"/>
                    <Label Content="Password Field Name :" FontFamily="B Nazanin" FontSize="14" Margin="9,102,551,0" VerticalAlignment="Top"/>
                    <Label x:Name="txtUsernameFieldf" Content="Username Field Name :" FontFamily="B Nazanin" FontSize="14" Margin="9,129,551,0" VerticalAlignment="Top"/>
                    <TextBox x:Name="txtPassword" Height="23" Margin="165,157,10,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" FontFamily="Times New Roman"/>
                    <TextBox x:Name="txtUsername" Height="23" Margin="165,185,10,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" FontFamily="Times New Roman"/>
                    <Label Content="Password :" FontFamily="B Nazanin" FontSize="14" Margin="9,151,604,0" VerticalAlignment="Top"/>
                    <Label Content="Username :" FontFamily="B Nazanin" FontSize="14" Margin="9,177,614,0" VerticalAlignment="Top"/>
                    <CheckBox x:Name="chbEnableLogin" IsChecked="False" Content="Enable Login" HorizontalAlignment="Left" Margin="9,13,0,0" VerticalAlignment="Top"/>
                </Grid>
            </TabItem>
        </TabControl>

    </Grid>
</Window>
